package cn.zxf.note.user.user;

import org.springframework.data.jpa.repository.Query;

import cn.zxf.note.common.jpa.EntityRepository;

public interface UserRepository extends EntityRepository<User> {

    @Query("FROM User WHERE accountNumber = ?1 OR mobile = ?1 OR email = ?1")
    User login(String account);

    @Query("SELECT status FROM User WHERE id = ?1")
    Integer findStatus(Integer id);

}
